package com.xx.bysj.mapper;

import com.xx.bysj.dto.HnOrder;
import com.xx.bysj.dto.HnUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HnOrderMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(HnOrder record);

    int insertSelective(HnOrder record);

    HnOrder selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(HnOrder record);

    int updateByPrimaryKey(HnOrder record);

    List<HnOrder> selectByOrder(HnOrder order);

    void updateCancel(HnOrder order);

    void update(HnOrder orderUpdate);

    List<HnOrder> selectToAssign(HnOrder order);

    void updateByUserId(@Param("userId") Integer userId, @Param("orderId") Integer orderId);

    List<HnOrder> queryReceive(HnOrder order);

    List<HnOrder> selectByReceiveUserId(HnUser thisUser);

    void salary(@Param("userId") Integer userId);

    void updateFinish(HnOrder order);
}